/**
 * 首页组件样式
 * 紧凑布局设计，优化空间利用
 */

/* 首页容器 */
.home-page {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

/* 通知区域 - 一行显示 */
.notification-section {
  margin-bottom: 12px;
}

.notification-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(24, 160, 88, 0.08) 0%, rgba(24, 160, 88, 0.04) 100%);
  border: 1px solid rgba(24, 160, 88, 0.2);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  min-height: 36px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(24, 160, 88, 0.1);
}

.notification-bar:hover {
  border-color: rgba(24, 160, 88, 0.4);
  background: linear-gradient(135deg, rgba(24, 160, 88, 0.12) 0%, rgba(24, 160, 88, 0.06) 100%);
  box-shadow: 0 2px 8px rgba(24, 160, 88, 0.15);
  transform: translateY(-1px);
}

.notification-bar.loading {
  background: linear-gradient(135deg, rgba(64, 158, 255, 0.08) 0%, rgba(64, 158, 255, 0.04) 100%);
  border-color: rgba(64, 158, 255, 0.2);
  box-shadow: 0 1px 3px rgba(64, 158, 255, 0.1);
}

.notification-icon {
  flex-shrink: 0;
  color: #18a058;
}

.notification-label {
  flex-shrink: 0;
  font-weight: 600;
  color: #18a058;
}

.notification-content {
  flex: 1;
  color: var(--n-text-color-1);
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notification-date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--n-text-color-3);
  margin-left: auto;
  background: rgba(24, 160, 88, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.notification-text {
  color: var(--n-text-color-1);
  font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 639px) {
  .notification-section {
    margin-bottom: 8px;
  }

  .notification-bar {
    padding: 6px 10px;
    font-size: 12px;
    min-height: 32px;
    gap: 6px;
  }

  .notification-content {
    font-size: 12px;
  }

  .notification-date {
    font-size: 11px;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .notification-section {
    margin-bottom: 10px;
  }

  .notification-bar {
    min-height: 34px;
  }
}

@media (min-width: 1024px) {
  .notification-section {
    margin-bottom: 12px;
  }
}

/* 暗黑模式适配 */
@media (prefers-color-scheme: dark) {
  :root {
    --home-border-announcement-hover: #2a947d;
    --home-border-hover-color: #409eff;
    --home-border-color: #333;
    --home-border-width: 1px;
    --home-border-radius: 8px;
    --home-shadow-default: 0 2px 8px rgba(0, 0, 0, 0.3);
    --home-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.4);
    --home-shadow-focus: 0 0 0 3px rgba(64, 158, 255, 0.2);
  }

  .notification-bar {
    background: linear-gradient(135deg, rgba(24, 160, 88, 0.15) 0%, rgba(24, 160, 88, 0.08) 100%);
    border-color: rgba(24, 160, 88, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }

  .notification-bar:hover {
    background: linear-gradient(135deg, rgba(24, 160, 88, 0.2) 0%, rgba(24, 160, 88, 0.12) 100%);
    border-color: rgba(24, 160, 88, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .notification-bar.loading {
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.15) 0%, rgba(64, 158, 255, 0.08) 100%);
    border-color: rgba(64, 158, 255, 0.3);
  }

  .notification-date {
    background: rgba(24, 160, 88, 0.2);
    color: rgba(255, 255, 255, 0.8);
  }

  .welcome-banner {
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.1) 0%, rgba(64, 158, 255, 0.05) 100%);
    border-color: rgba(64, 158, 255, 0.2);
  }

  .announcements-section,
  .image-section {
    background: linear-gradient(135deg, rgba(245, 108, 108, 0.1) 0%, rgba(245, 108, 108, 0.05) 100%);
    border-color: rgba(245, 108, 108, 0.2);
  }

  .welcome-banner:hover {
    border-color: rgba(64, 158, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(64, 158, 255, 0.4);
  }

  .announcements-section:hover,
  .image-section:hover {
    border-color: rgba(245, 108, 108, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(245, 108, 108, 0.4);
  }

  .announcement-item {
    border-color: rgba(255, 255, 255, 0.1);
  }

  .announcement-item:hover {
    background-color: rgba(245, 108, 108, 0.1);
    border-left-color: rgba(245, 108, 108, 0.6);
  }
}

@media (prefers-contrast: high) {
  :root {
    --home-border-color: #000;
    --home-border-width: 2px;
    --home-border-radius: 4px;
    --home-shadow-default: 0 1px 3px rgba(0, 0, 0, 0.5);
    --home-shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.6);
    --home-shadow-focus: 0 0 0 4px rgba(0, 0, 0, 0.8);
  }

  .welcome-banner,
  .announcements-section,
  .image-section {
    border-width: 2px;
    border-radius: 4px;
  }

  .welcome-banner {
    background: #fff;
    border-color: #000;
  }

  .announcements-section,
  .image-section {
    background: #fff;
    border-color: #000;
  }

  .welcome-banner:hover {
    border-color: #409eff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), inset 0 0 0 2px #409eff;
  }

  .announcements-section:hover,
  .image-section:hover {
    border-color: #f56c6c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), inset 0 0 0 2px #f56c6c;
  }

  .announcement-item {
    border-color: #000;
  }

  .announcement-item:hover {
    background-color: #f0f0f0;
    border-left-color: #f56c6c;
  }

  .image-placeholder {
    background: #f0f0f0;
    border-color: #000;
    border-width: 2px;
  }

  .image-placeholder:hover {
    background: #e0e0e0;
    border-color: #409eff;
  }
}

/* 图片区域样式 */
.image-section {
  width: 100%;
  height: 400px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: none;
  overflow: hidden;
  position: relative;
}

.image-section:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.image-section:focus-within {
  border-color: transparent;
  box-shadow: none;
}

/* 图片展示区域样式 */
.image-display {
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  position: relative;
  padding: 0;
}

.display-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: none;
  box-shadow: none;
}

.display-image:hover {
  transform: none;
  box-shadow: none;
}

/* 图片占位符样式（保留作为备用） */
.image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 2px dashed rgba(64, 158, 255, 0.2);
  transition: all 0.3s ease;
}

/* 缩略图容器样式 */
.thumbnail-container {
  width: 800px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  margin: 0 auto;
  transition: box-shadow 0.2s;
}


/* 缩略图图片样式 */
.thumbnail-image {
  width: 100%;
  height: 100%;
  max-width: 780px;
  max-height: 480px;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* 放大图标提示样式 */
.zoom-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  opacity: 0.96;
  pointer-events: auto;
  z-index: 10;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.zoom-overlay:hover {
  background: rgba(64,158,255,0.95);
  color: #fff;
  box-shadow: 0 2px 8px rgba(64,158,255,0.18);
}
.zoom-icon {
  margin-right: 6px;
}
.zoom-text {
  font-size: 12px;
  font-weight: 500;
}

/* 顶部区域 - 欢迎横幅和公告 */

/* 欢迎横幅区域 */
.welcome-banner {
  padding: 10px;
  min-height: 120px;
  border-radius: var(--home-border-radius);
  background: var(--n-card-color);
  border: var(--home-border-width) solid var(--home-border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  /* 使用box-shadow模拟圆角边框效果 */
  box-shadow: var(--home-shadow-default),
              inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.welcome-banner:hover {
  border-color: var(--home-border-hover-color);
  transform: translateY(-2px);
  /* 使用box-shadow模拟圆角边框，避免outline变大 */
  box-shadow: var(--home-shadow-hover),
              inset 0 0 0 1px var(--home-border-hover-color);
}

.welcome-banner:focus-within {
  border-color: var(--home-border-hover-color);
  outline: none;
  box-shadow: var(--home-shadow-focus), var(--home-shadow-hover);
}

.welcome-banner:active {
  transform: translateY(-1px);
  transition-duration: 0.1s;
}

.banner-header {
  margin-bottom: clamp(8px, 1.5vw, 12px);
}

.banner-title {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 clamp(4px, 1vw, 6px) 0;
  color: var(--n-text-color-1);
}

.banner-subtitle {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  opacity: 0.8;
  color: var(--n-text-color-2);
}

.banner-description-container {
  width: 100%;
}

.banner-description {
  line-height: 1.4;
  margin: 0 0 clamp(6px, 1vw, 8px) 0;
  color: var(--n-text-color-2);
}

.banner-disclaimer {
  margin-top: clamp(6px, 1vw, 8px);
}

.disclaimer-title {
  margin-bottom: clamp(4px, 0.8vw, 6px);
  display: block;
  color: var(--n-text-color-1);
}

.disclaimer-content {
  margin-top: clamp(4px, 0.8vw, 6px);
}

.disclaimer-text {
  line-height: 1.3;
  color: var(--n-text-color-3);
}

/* 公告区域 */
.announcements-section {
  padding: 10px;
  min-height: 120px;
  border-radius: var(--home-border-radius);
  background: var(--n-card-color);
  border: var(--home-border-width) solid var(--home-border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  /* 使用box-shadow模拟圆角边框 */
  box-shadow: var(--home-shadow-default),
              inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.announcements-section:hover {
  border-color: var(--home-border-announcement-hover);
  transform: translateY(-2px);
  /* 使用box-shadow模拟圆角边框，避免outline变大 */
  box-shadow: var(--home-shadow-hover),
              inset 0 0 0 1px var(--home-border-announcement-hover);
}

.announcements-section:focus-within {
  border-color: var(--home-border-announcement-hover);
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 148, 125, 0.15), var(--home-shadow-hover);
}

.announcements-section:active {
  transform: translateY(-1px);
  transition-duration: 0.1s;
}

.announcement-item {
  padding: clamp(8px, 1.5vw, 12px) 0;
  border-bottom: 2px solid var(--n-border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid transparent;
  margin-left: -4px;
  padding-left: 4px;
  position: relative;
}

.announcement-item:last-child {
  border-bottom: none;
}

.announcement-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, transparent, var(--n-info-color), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.announcement-item:hover {
  background-color: var(--n-hover-color);
  border-radius: 8px;
  border-left-color: var(--home-border-announcement-hover);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transform: translateX(2px);
  /* 保持原有的padding，避免边框被隐藏 */
  padding-left: clamp(8px, 1.5vw, 12px);
  padding-right: clamp(8px, 1.5vw, 12px);
  margin-left: -clamp(4px, 1vw, 6px);
  margin-right: -clamp(4px, 1vw, 6px);
}

.announcement-item:hover::before {
  opacity: 1;
}

.announcement-content {
  flex: 1;
  min-width: 0;
}

.announcement-title {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: clamp(2px, 0.5vw, 4px);
  display: block;
  color: var(--n-text-color-1);
}

.announcement-brief {
  line-height: 1.4;
  display: block;
  opacity: 0.8;
  color: var(--n-text-color-3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.announcement-date {
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.7;
  color: var(--n-text-color-3);
}

/* 第二行区域样式 */
.second-section {
  padding: clamp(16px, 3vw, 24px) 0;
  margin-bottom: 0;
}

/* 第三行区域样式 */
.third-section {
  padding: clamp(16px, 3vw, 24px) 0;
  margin-bottom: 0;
}

/* 第四行区域样式 - 创作者信息 */
.fourth-section {
  padding: clamp(16px, 3vw, 24px) 0;
}

/* 第五行区域样式 - 子弹价格预测 */
.fifth-section {
  padding: clamp(16px, 3vw, 24px) 0;
  margin-bottom: clamp(24px, 4vw, 32px);
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}

/* 卡片样式 - 降低高度到最低 */
.map-passwords-card,
.stats-card {
  height: 100%;
  min-height: auto;
  display: flex;
  flex-direction: column;
}

.map-passwords-card .n-card__content,
.stats-card .n-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stats-overview,
.map-password-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* 密码列表样式 */
.passwords-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.password-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(12px, 2vw, 16px);
  border-radius: 8px;
  border: 1px solid var(--n-border-color);
  background: var(--n-card-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.password-item:hover {
  background: var(--n-hover-color);
  border-color: var(--n-primary-color);
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.password-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.password-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-map-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.password-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.password-map-name {
  font-weight: 500;
  color: var(--n-text-color-2);
}

.password-code {
  font-weight: 600;
  font-family: 'Courier New', monospace;
  color: var(--n-text-color-1);
}

.password-code.no-password {
  color: var(--n-text-color-3);
  font-style: italic;
  font-family: inherit;
}

/* 统计数据样式 */
.stats-overview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1.5vw, 12px);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: clamp(8px, 1.5vw, 12px);
  border-radius: 6px;
  border: 1px solid var(--n-border-color);
  background: var(--n-card-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
  background: var(--n-hover-color);
  border-color: var(--n-primary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.stat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.stat-value {
  font-weight: 700;
  color: var(--n-text-color-1);
  line-height: 1;
}

.stat-label {
  color: var(--n-text-color-3);
  font-weight: 500;
}

/* 价格变动样式 */
.price-changes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-change-section {
  border: 1px solid var(--n-border-color);
  border-radius: 6px;
  padding: 8px;
  background: var(--n-card-color);
}

.price-change-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.price-change-title {
  font-weight: 600;
  color: var(--n-text-color-2);
}

.price-change-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 70px;
  overflow-y: auto;
}

.price-change-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 5px;
  border-radius: 3px;
  background: var(--n-hover-color);
}

.item-name {
  color: var(--n-text-color-2);
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-change {
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.item-change.increase {
  color: #18a058;
}

.item-change.decrease {
  color: #d03050;
}

.item-change.favorite {
  color: #f0a020;
}

.no-data {
  color: var(--n-text-color-3);
  text-align: center;
  padding: 8px;
  font-style: italic;
}

/* 加载状态样式 */
.loading-state {
  padding: clamp(20px, 4vw, 30px);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) {
  .top-section {
    padding: clamp(14px, 2.5vw, 20px) 0;
  }

  .welcome-banner,
  .announcements-section,
  .image-section {
    padding: clamp(14px, 2.2vw, 18px);
  }

  .second-section {
    padding: clamp(14px, 2.5vw, 20px) 0;
  }

  .third-section {
    padding: clamp(14px, 2.5vw, 20px) 0;
  }

  .map-passwords-section,
  .stats-section {
    padding: clamp(14px, 2.2vw, 18px);
    min-height: clamp(180px, 22vw, 240px);
  }
}

/* 响应式设计 - 使用Naive UI断点系统 */

/* 超小屏幕 (xs: < 640px) */
@media (max-width: 639px) {
  .top-section {
    padding: 8px 0;
  }

  .second-section {
    padding: 8px 0;
    margin-bottom: 0;
  }

  .third-section {
    padding: 8px 0;
    margin-bottom: 0;
  }

  .welcome-banner,
  .announcements-section,
  .image-section {
    padding: 10px;
    min-height: 120px;
  }

  .image-section {
    height: 400px;
    padding: 0;
  }

  .image-display {
    padding: 0;
  }

  .display-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .image-placeholder {
    min-height: 100px;
  }

  .map-passwords-card,
  .stats-card {
    min-height: auto;
  }

  .banner-header {
    margin-bottom: 6px;
  }

  .banner-title {
    line-height: 1.1;
  }

  .banner-subtitle {
  }

  .banner-description {
    line-height: 1.2;
  }

  .disclaimer-title {
  }

  .disclaimer-text {
    line-height: 1.1;
  }

  .announcement-item {
    padding: 4px 0;
  }

  .announcement-title {
  }

  .announcement-brief {
  }

  .announcement-date {
  }

  /* 地图密码和统计数据在小屏幕上的样式 */
  .password-item {
    padding: 8px;
  }

  .password-map-icon {
    width: 24px;
    height: 24px;
  }

  .password-map-name {
  }

  .password-code {
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat-item {
    padding: 8px;
  }

  .stat-icon {
    width: 28px;
    height: 28px;
  }

  .stat-value {
  }

  .stat-label {
  }

  /* 地图密码和统计数据在小屏幕上的特殊布局 */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .password-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .password-right {
    align-self: flex-end;
  }

  .price-change-list {
    max-height: 60px;
  }

  .price-change-item {
    padding: 3px 5px;
  }

  .map-password-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .map-password-header,
  .stats-card-header-flat {
    padding: 8px;
  }
  
  .map-password-content-flat,
  .stats-card-content-flat {
    padding: 10px 8px;
  }
  
  .map-password-name-flat {
  }

  .map-password-value-flat {
  }

  .stats-card-value-flat {
  }

  .stats-card-label-flat {
  }

  .thumbnail-container {
    width: 95vw;
    height: 48vw;
    min-width: 220px;
    min-height: 120px;
    max-width: 100vw;
    max-height: 60vw;
  }
  .thumbnail-image {
    max-width: 90vw;
    max-height: 46vw;
  }
  .image-display {
    height: 52vw;
    min-height: 120px;
  }
}

/* 小屏幕 (s: 640px - 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
  .top-section {
    padding: clamp(12px, 2vw, 16px) 0;
  }

  .second-section {
    padding: clamp(12px, 2vw, 16px) 0;
  }

  .third-section {
    padding: clamp(12px, 2vw, 16px) 0;
  }

  .welcome-banner,
  .announcements-section,
  .image-section {
    padding: clamp(12px, 1.8vw, 16px);
    min-height: clamp(140px, 18vw, 180px);
  }

  .image-section {
    height: 400px;
    padding: 0;
  }

  .image-display {
    padding: 0;
  }

  .display-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .image-placeholder {
    min-height: 110px;
  }

  .map-passwords-card,
  .stats-card {
    min-height: clamp(160px, 20vw, 200px);
  }

  .banner-header {
    margin-bottom: 8px;
  }

  .banner-title {
    line-height: 1.1;
  }

  .banner-subtitle {
  }

  .banner-description {
    line-height: 1.3;
  }

  .disclaimer-title {
  }

  .disclaimer-text {
    line-height: 1.2;
  }

  .announcement-item {
    padding: 6px 0;
  }

  /* 地图密码和统计数据在小屏幕上的样式 */
  .password-item {
    padding: 10px;
  }

  .password-map-icon {
    width: 28px;
    height: 28px;
  }

  .password-map-name {
  }

  .password-code {
  }

  .stat-item {
    padding: 10px;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
  }

  .stat-value {
  }

  .stat-label {
  }

  /* 扁平化卡片在小屏幕上的样式 */
  .map-password-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  
  .map-password-header,
  .stats-card-header-flat {
    padding: 10px;
  }
  
  .map-password-content-flat,
  .stats-card-content-flat {
    padding: 12px 10px;
  }
  
  .map-password-name-flat {
  }

  .map-password-value-flat {
  }

  .stats-card-value-flat {
  }

  .stats-card-label-flat {
  }
}

/* 大屏幕 (lg: 1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .top-section {
    padding: clamp(16px, 2.5vw, 20px) 0;
  }

  .second-section {
    padding: clamp(16px, 2.5vw, 20px) 0;
  }

  .third-section {
    padding: clamp(16px, 2.5vw, 20px) 0;
  }

  .welcome-banner,
  .announcements-section,
  .image-section {
    padding: clamp(16px, 2.2vw, 20px);
    min-height: clamp(160px, 20vw, 200px);
  }

  .image-display {
    min-height: clamp(140px, 18vw, 180px);
    padding: clamp(14px, 1.8vw, 18px);
  }

  .display-image {
    max-width: 100%;
    max-height: clamp(120px, 16vw, 160px);
  }

  .image-placeholder {
    min-height: 140px;
  }

  .map-passwords-card,
  .stats-card {
    min-height: clamp(200px, 24vw, 260px);
  }

  .banner-header {
    margin-bottom: 12px;
  }

  .banner-title {
    line-height: 1.2;
  }

  .banner-subtitle {
  }

  .banner-description {
    line-height: 1.5;
  }

  .disclaimer-title {
  }

  .disclaimer-text {
    line-height: 1.4;
  }

  .announcement-item {
    padding: 10px 0;
  }

  /* 地图密码和统计数据在大屏幕上的样式 */
  .password-item {
    padding: 14px;
  }

  .password-map-icon {
    width: 32px;
    height: 32px;
  }

  .password-map-name {
  }

  .password-code {
  }

  .stat-item {
    padding: 14px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
  }

  .stat-value {
  }

  .stat-label {
  }

  /* 扁平化卡片在大屏幕上的样式 */
  .map-password-grid,
  .stats-card-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  
  .map-password-header,
  .stats-card-header-flat {
    padding: 14px;
  }
  
  .map-password-content-flat,
  .stats-card-content-flat {
    padding: 16px 14px;
  }
  
  .map-password-name-flat {
  }

  .map-password-value-flat {
  }

  .stats-card-value-flat {
  }

  .stats-card-label-flat {
  }
}

/* 旧的超小屏幕样式已合并到新的断点系统中 */

/* 卡片网格布局 */
.map-password-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
}

.stats-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}

/* Naive UI 卡片样式定制 */
.map-password-naive-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  background-color: var(--n-card-color);
  position: relative;
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
}

.map-password-naive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--n-primary-color);
}

.map-password-naive-card:active {
  transform: translateY(-1px);
  transition-duration: 0.1s;
}

.map-card-header,
.stats-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  min-height: 32px;
}

.map-card-title,
.stats-card-title {
  font-weight: 500;
}

.map-card-content,
.stats-card-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0;
}

.stats-value {
  font-weight: 500;
}

.stats-value-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.stats-percentage {
  margin-top: 2px;
}

.stats-progress-container {
  width: 100%;
  margin-top: 4px;
}

/* 紧凑卡片样式 */
.compact-card .n-card__content {
  padding: 4px 8px;
  height: auto;
}

.n-modal .n-card__content{
  padding: 0px !important;
}

.compact-card .n-card__header {
  padding: 6px 8px;
}

/* 确保进度条在暗黑模式下可见 */
@media (prefers-color-scheme: dark) {
  .stats-progress-container .n-progress-graph {
    background-color: rgba(255, 255, 255, 0.15);
  }
}

/* 水平布局样式 */
.horizontal-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 35px;
  height: 48px;
  align-items: center;
}

.horizontal-layout .stats-card-title {
  font-weight: 500;
  color: var(--n-text-color);
  flex: 1;
}

.stats-value-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.stats-value-right .stats-value {
  font-weight: 500;
  line-height: 1.2;
}

.stats-value-right .stats-percentage {
  margin-top: 2px;
}

.stats-value-right .stats-progress-container {
  width: 80px;
  margin-top: 4px;
}

/* 地图密码卡片样式 */
.map-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-icon {
  /* 颜色已在各个map-icon-X类中设置 */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.map-password-value {
  font-weight: 500;
}

/* 水平布局样式 */
.horizontal-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  height: 48px;
}

/* 双色进度条 */
.dual-progress-bar {
  width: 100%;
  height: 12px;
  background-color: #f5f5f5;
  border-radius: 4px;
  display: flex;
  overflow: hidden;
  margin-top: 4px;
  border: 1px solid #e0e0e0;
  min-width: 150px;
}

.progress-rising {
  height: 100%;
  background-color: var(--n-error-color);
  min-width: 4px;
  transition: width 0.3s ease;
}

.progress-falling {
  height: 100%;
  background-color: var(--n-success-color);
  min-width: 4px;
  transition: width 0.3s ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  width: 100%;
}

/* 暗黑模式下的进度条背景 */
@media (prefers-color-scheme: dark) {
  .dual-progress-bar {
    border-color: #444;
    background-color: #333;
  }
}

/* 垂直布局样式 */
.vertical-layout {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  height: auto;
  min-height: 60px;
}

.stats-title-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.vertical-layout .stats-card-title {
  font-weight: 500;
  margin-right: 4px;
  color: var(--n-text-color);
}

.vertical-layout .stats-value {
  font-weight: 500;
}

.vertical-layout .stats-progress-container {
  width: 100%;
}

/* 单色进度条 */
.single-progress-bar {
  width: 100%;
  height: 6px;
  background-color: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-rising-single {
  height: 100%;
  background-color: var(--n-error-color);
}

.progress-falling-single {
  height: 100%;
  background-color: var(--n-success-color);
}

/* 暗黑模式下的进度条背景 */
@media (prefers-color-scheme: dark) {
  .single-progress-bar {
    background-color: rgba(255, 255, 255, 0.15);
  }
}

.stats-naive-card {
  margin-bottom: 0;
  transition: all 0.2s ease;
  height: auto;
}

.stats-naive-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 地图密码卡片内部样式 */
.map-card-content {
  display: flex;
  padding: 10px 12px;
  align-items: center;
  gap: 10px;
}

.map-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: calc(100% - 50px);
}

.map-name {
  font-weight: 500;
  color: var(--n-text-color-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-password-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-password-value {
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-icon {
  opacity: 0.6;
  transition: all 0.2s ease;
  cursor: pointer;
}

.copy-icon:hover {
  opacity: 1;
  color: var(--n-primary-color);
  transform: scale(1.1);
}

.copy-success {
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* 响应式调整 */
@media (max-width: 639px) {
  .map-password-grid {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: auto;
    gap: 6px;
  }
  
  .map-card-content {
    padding: 8px 10px;
  }
  
  .map-icon-container {
    width: 32px;
    height: 32px;
  }
  
  .map-info {
    width: calc(100% - 42px);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .map-password-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 8px;
  }
}

/* 地图图标颜色 */
.map-icon-0 {
  background-color: rgba(64, 158, 255, 0.1);
  color: #409eff; /* 蓝色 - 大坝 */
}

.map-icon-1 {
  background-color: rgba(103, 194, 58, 0.1);
  color: #67c23a; /* 绿色 - 长工 */
}

.map-icon-2 {
  background-color: rgba(230, 162, 60, 0.1);
  color: #e6a23c; /* 橙色 - 巴克什 */
}

.map-icon-3 {
  background-color: rgba(245, 108, 108, 0.1);
  color: #f56c6c; /* 红色 - 航天 */
}

.map-icon-4 {
  background-color: rgba(100, 116, 237, 0.1);
  color: #6474ed; /* 紫色 - 潮汐监狱 */
}

.map-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.map-password-naive-card:hover .map-icon-container {
  transform: scale(1.1);
}

/* 快速链接样式 */
.quick-links {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}

/* 图片放大模态框样式 */
.image-modal {
  background: transparent !important;
}

.image-modal .n-card {
  background: rgba(0, 0, 0, 0.9) !important;
  border: none !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
  border-radius: 8px !important;
}

.modal-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 16px;
  min-height: 200px;
  overflow: auto;
  max-width: 100%;
  max-height: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.modal-image-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.modal-image-container::-webkit-scrollbar-track {
  background: transparent;
}

.modal-image-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.modal-image-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.modal-image {
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
}

/* 移动端响应式适配 */
@media (max-width: 768px) {
  .modal-image {
    width: auto;
    height: auto;
    max-width: 98vw;
    max-height: 90vh;
    object-fit: contain;
    transform: rotate(90deg);
  }

  .modal-image-container {
    padding: 4px;
    width: 100%;
    height: 100%;
    min-height: 85vh;
    overflow: auto;
  }

  .image-modal {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: 100% !important;
  }

  .image-modal .n-card {
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
  }
}

/* 小屏设备特殊适配 */
@media (max-width: 480px) {
  .modal-image {
    width: auto;
    height: auto;
    max-width: 135vw;
    max-height: 85vh;
    object-fit: contain;
    transform: rotate(90deg);
  }

  .modal-image-container {
    padding: 2px;
    height: 100vh;
    width: 100vw;
    min-height: 90vh;
    overflow: auto;
  }
}
